<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <h2>Essential Links</h2>
    <h3>{{ code }}</h3>
    <mt-button @click.native="register">按钮</mt-button>
  </div>
</template>

<script>
import { Message } from 'element-ui';
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js Appss',
      code: '123456'
    }
  },
  methods: {
      register: function() {
       var that = this;
       this.$message.error('错了哦，这是一条错误消息');
      }
  }
}
</script>

